package com.swinboo.im.api;

import com.huang.entity.result.HStringResult;
import com.swinboo.im.entity.info.ChatRecordInfo;
import com.swinboo.im.entity.param.GetChatRecordParam;
import com.swinboo.im.entity.param.SendSingleMsgParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Swinboo
 * @date 2022-03-19 20:41
 * @description:
 */
public interface EMMsgApi {

    @PostMapping("/im/msg/send")
    HStringResult<Boolean> send(@RequestBody SendSingleMsgParam sendSingleMsgParam);

    @PostMapping("/im/msg/getRecord")
    HStringResult<ChatRecordInfo> getRecord(@RequestBody GetChatRecordParam getChatRecordParam);

}
